package spaceInvaders.view;

import java.awt.Color;
import java.awt.Graphics2D;

import gameFramework.model.entites.Entity;
import gameFramework.view.GEntity;

/**
 * 
 * @author Zhai Jing
 *
 */
public class GMonster extends GEntity {

	public GMonster(Entity arg0) {
		super(arg0);
	}

	/**
	 * @see gameFramework.view.GEntity#draw(java.awt.Graphics2D)
	 */
	@Override
	public void draw(Graphics2D g2d) {
		g2d.setColor(Color.RED);
		g2d.fillRoundRect(this.model.getPosition().x, this.model.getPosition().y,
				this.model.getSize().width, this.model.getSize().height,
				2, 2);
	}

}
